package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.fqcar.fqdf.util.Constants;

import java.util.List;

/**
 * Created by lvsidong on 2017/10/23.
 *
 * 最近一次处理记录
 */

public class CarLastDetailEntity implements Parcelable{
    public int carId;
    public String cause = Constants.BLANK;
    public String detail = Constants.BLANK;
    public String endGps = Constants.BLANK;
    public String endLocation = Constants.BLANK;
//    public String endTime = Constants.BLANK;
//    public String endTimeDesc = Constants.BLANK;

    public int id;
    public String license = Constants.BLANK;
    public int adminId;
    public String adminName = Constants.BLANK;

    public String startTime = Constants.BLANK;
    public String startGps = Constants.BLANK;
    public String startLocation = Constants.BLANK;
//    public List<ImageEntity> getDealImgList() {

    //    }
//        this.dealImgList = dealImgList;
//    public void setDealImgList(List<ImageEntity> dealImgList) {
//
//    }
//        return dealImgList;
//    public List<ImageEntity> dealImgList;
    public int getAdminId() {
        return adminId;
    }

    public void setAdminId(int adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getEndGps() {
        return endGps;
    }

    public void setEndGps(String endGps) {
        this.endGps = endGps;
    }

    public String getEndLocation() {
        return endLocation;
    }

    public void setEndLocation(String endLocation) {
        this.endLocation = endLocation;
    }

//    public String getEndTime() {
//        return endTime;
//    }
//
//    public void setEndTime(String endTime) {
//        this.endTime = endTime;
//    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getStartGps() {
        return startGps;
    }

    public void setStartGps(String startGps) {
        this.startGps = startGps;
    }

//    public String getEndTimeDesc() {
//        return endTimeDesc;
//    }
//
//    public void setEndTimeDesc(String endTimeDesc) {
//        this.endTimeDesc = endTimeDesc;
//    }

    public String getStartLocation() {
        return startLocation;
    }

    public void setStartLocation(String startLocation) {
        this.startLocation = startLocation;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

//    public String getManagerName() {
//        return managerName;
//    }
//
//    public void setManagerName(String managerName) {
//        this.managerName = managerName;
//    }

    public static Creator<CarLastDetailEntity> getCREATOR() {
        return CREATOR;
    }

    public CarLastDetailEntity() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.carId);
        dest.writeString(this.cause);
        dest.writeString(this.detail);
        dest.writeString(this.endGps);
        dest.writeString(this.endLocation);
        dest.writeInt(this.id);
        dest.writeString(this.license);
        dest.writeInt(this.adminId);
        dest.writeString(this.adminName);
        dest.writeString(this.startTime);
        dest.writeString(this.startGps);
        dest.writeString(this.startLocation);
    }

    protected CarLastDetailEntity(Parcel in) {
        this.carId = in.readInt();
        this.cause = in.readString();
        this.detail = in.readString();
        this.endGps = in.readString();
        this.endLocation = in.readString();
        this.id = in.readInt();
        this.license = in.readString();
        this.adminId = in.readInt();
        this.adminName = in.readString();
        this.startTime = in.readString();
        this.startGps = in.readString();
        this.startLocation = in.readString();
    }

    public static final Creator<CarLastDetailEntity> CREATOR = new Creator<CarLastDetailEntity>() {
        @Override
        public CarLastDetailEntity createFromParcel(Parcel source) {
            return new CarLastDetailEntity(source);
        }

        @Override
        public CarLastDetailEntity[] newArray(int size) {
            return new CarLastDetailEntity[size];
        }
    };
}
